﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace  DongleManage.Model.EssentialData
{

		
	/// <summary>
	///  表'TestItem'的实体表示.
	/// </summary>
	/// <remarks>
	/// 该实体由工具生成，尽量不要手动修改
	/// </remarks>
	[DataContract]
	public partial class TestItemEntity 
	{
		#region 属性、变量声明
		#region 主属性 --对应数据表主键
		/// <summary>			
		/// Code : 
		/// </summary>
		/// <remarks>表TestItem主键</remarks>
		[DisplayName("")]
		[DataMember]
		public String Code
        {
            get;
            set;
        }
		#endregion
		
		#region 属性
		
		/// <summary>
		/// Classify : 1：形态，2：机能，3：素质
		/// </summary>
        [DisplayName("1：形态，2：机能，3：素质")]
        
		[DataMember]
		public Int32? Classify
        {
            get;
            set;
        }
		
		/// <summary>
		/// Name : 
		/// </summary>
        [DisplayName("")]
        [Required(ErrorMessage = "不允许为空!")]
        [StringLength(64, ErrorMessage = "请勿输入超过 64 个字!")]
        
		[DataMember]
		public String Name
        {
            get;
            set;
        }
		
		/// <summary>
		/// UnitName : 
		/// </summary>
        [DisplayName("")]
        [StringLength(64, ErrorMessage = "请勿输入超过 64 个字!")]
        
		[DataMember]
		public String UnitName
        {
            get;
            set;
        }
		
		/// <summary>
		/// UnitEName : 
		/// </summary>
        [DisplayName("")]
        [StringLength(64, ErrorMessage = "请勿输入超过 64 个字!")]
        
		[DataMember]
		public String UnitEName
        {
            get;
            set;
        }
		
		/// <summary>
		/// Memo : 
		/// </summary>
        [DisplayName("")]
        [StringLength(256, ErrorMessage = "请勿输入超过 256 个字!")]
        
		[DataMember]
		public String Memo
        {
            get;
            set;
        }
		
		/// <summary>
		/// IsEdit : 标记为1的只有内部人员才可以编辑，0的用户可以编辑。管理员可以删除用户不合法的数据，但是不能编辑。
		/// </summary>
        [DisplayName("标记为1的只有内部人员才可以编辑，0的用户可以编辑。管理员可以删除用户不合法的数据，但是不能编辑。")]
        [Required(ErrorMessage = "标记为1的只有内部人员才可以编辑，0的用户可以编辑。管理员可以删除用户不合法的数据，但是不能编辑。不允许为空!")]
        
		[DataMember]
		public Int32 IsEdit
        {
            get;
            set;
        }
		
		/// <summary>
		/// Flag : 
		/// </summary>
        [DisplayName("")]
        [Required(ErrorMessage = "不允许为空!")]
        
		[DataMember]
		public Int32 Flag
        {
            get;
            set;
        }
		
		/// <summary>
		/// InUserID : 
		/// </summary>
        [DisplayName("")]
        [Required(ErrorMessage = "不允许为空!")]
        
		[DataMember]
		public Int32 InUserID
        {
            get;
            set;
        }
		
		/// <summary>
		/// InDate : 
		/// </summary>
        [DisplayName("")]
        
		[DataMember]
		public DateTime InDate
        {
            get;
            set;
        }
		
		/// <summary>
		/// EditUserID : 
		/// </summary>
        [DisplayName("")]
        [Required(ErrorMessage = "不允许为空!")]
        
		[DataMember]
		public Int32 EditUserID
        {
            get;
            set;
        }
		
		/// <summary>
		/// EditDate : 
		/// </summary>
        [DisplayName("")]
        
		[DataMember]
		public DateTime? EditDate
        {
            get;
            set;
        }
		
		/// <summary>
		/// UniqueCode : 国家或有相关的统一编码
		/// </summary>
        [DisplayName("国家或有相关的统一编码")]
        [StringLength(64, ErrorMessage = "请勿输入超过 64 个字!")]
        
		[DataMember]
		public String UniqueCode
        {
            get;
            set;
        }
		#endregion

		#endregion 属性、变量声明
		
	    public TestItemEntity()
        {
            Code = string.Empty;
            Classify = null;
            Name = string.Empty;
            UnitName = null;
            UnitEName = null;
            Memo = null;
            IsEdit = (int)0;
            Flag = (int)0;
            InUserID = (int)0;
            InDate = DateTime.Now;
            EditUserID = (int)0;
            EditDate = null;
            UniqueCode = null;
        }
	}
}
